package com.eduhzy.ttw.commonsdk.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/8/13 15:19
 */
public class SignUp2Data implements Parcelable {

    /**
     * dataContent :
     * dataType : 1
     * describes : 要求为参评的作品文档。
     * fileType : 0
     * fileTypeName : 所有类
     * id : 636
     * isMust : 1
     * isPublic : 1
     * isUpload : 0
     * maxNum : 1
     * maxSize : 1073741824
     * name : 论文作品
     * realMaxSize : 1024
     * researchId : 769
     * seq : 2
     */

    private String dataContent;
    private int dataType;
    private String describes;
    private int fileType;
    private String fileTypeName;
    private int id;
    private int isMust;
    private int isPublic;
    private int isUpload;
    private int maxNum;
    private int maxSize;
    private String name;
    private int realMaxSize;
    private int researchId;
    private int seq;
    private int worksId;

    public int getWorksId() {
        return worksId;
    }

    public void setWorksId(int worksId) {
        this.worksId = worksId;
    }

    public String getDataContent() {
        return dataContent;
    }

    public void setDataContent(String dataContent) {
        this.dataContent = dataContent;
    }

    public int getDataType() {
        return dataType;
    }

    public void setDataType(int dataType) {
        this.dataType = dataType;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(int fileType) {
        this.fileType = fileType;
    }

    public String getFileTypeName() {
        return fileTypeName;
    }

    public void setFileTypeName(String fileTypeName) {
        this.fileTypeName = fileTypeName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsMust() {
        return isMust;
    }

    public void setIsMust(int isMust) {
        this.isMust = isMust;
    }

    public int getIsPublic() {
        return isPublic;
    }

    public void setIsPublic(int isPublic) {
        this.isPublic = isPublic;
    }

    public int getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(int isUpload) {
        this.isUpload = isUpload;
    }

    public int getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(int maxNum) {
        this.maxNum = maxNum;
    }

    public int getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(int maxSize) {
        this.maxSize = maxSize;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRealMaxSize() {
        return realMaxSize;
    }

    public void setRealMaxSize(int realMaxSize) {
        this.realMaxSize = realMaxSize;
    }

    public int getResearchId() {
        return researchId;
    }

    public void setResearchId(int researchId) {
        this.researchId = researchId;
    }

    public int getSeq() {
        return seq;
    }

    public void setSeq(int seq) {
        this.seq = seq;
    }

    public SignUp2Data() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.dataContent);
        dest.writeInt(this.dataType);
        dest.writeString(this.describes);
        dest.writeInt(this.fileType);
        dest.writeString(this.fileTypeName);
        dest.writeInt(this.id);
        dest.writeInt(this.isMust);
        dest.writeInt(this.isPublic);
        dest.writeInt(this.isUpload);
        dest.writeInt(this.maxNum);
        dest.writeInt(this.maxSize);
        dest.writeString(this.name);
        dest.writeInt(this.realMaxSize);
        dest.writeInt(this.researchId);
        dest.writeInt(this.seq);
        dest.writeInt(this.worksId);
    }

    protected SignUp2Data(Parcel in) {
        this.dataContent = in.readString();
        this.dataType = in.readInt();
        this.describes = in.readString();
        this.fileType = in.readInt();
        this.fileTypeName = in.readString();
        this.id = in.readInt();
        this.isMust = in.readInt();
        this.isPublic = in.readInt();
        this.isUpload = in.readInt();
        this.maxNum = in.readInt();
        this.maxSize = in.readInt();
        this.name = in.readString();
        this.realMaxSize = in.readInt();
        this.researchId = in.readInt();
        this.seq = in.readInt();
        this.worksId = in.readInt();
    }

    public static final Creator<SignUp2Data> CREATOR = new Creator<SignUp2Data>() {
        @Override
        public SignUp2Data createFromParcel(Parcel source) {
            return new SignUp2Data(source);
        }

        @Override
        public SignUp2Data[] newArray(int size) {
            return new SignUp2Data[size];
        }
    };
}
